<<<<<<< HEAD
// 解析模板字符串
=======
>>>>>>> f5643a53dbb9a0407a43e66eecc6e2384d0fbf00
export function tpl (str) {
    return str.replace(/\${([^{}]+)}/g, function (a, b) {
        try {
            return eval(b) || '';
        } catch (e) {
            return '';
        }
    });
};
